package com.wangshidai.entity.ztree;

import com.wangshidai.util.ztree.Treeable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TreeNode1 implements Treeable {
    private Integer id;
    private Integer parentId;
    private String parentName;
    private boolean open;
    private List<TreeNode1> children;


    @Override
    public void setChildren(List children) {
        this.children = children;
    }
}
